<?php

use Illuminate\Support\Facades\Route;


//Route::get('/', function () {
////    新建一个test.blade.php视图模板
//    return view('test');
//});
//
//

Route::get('posts/{post}', [\App\Http\Controllers\PostController::class,'show']);

// 用url传递参数 'posts/{post}'用大括号定义参数名在匿名函数引用
//Route::get('posts/{post}', function ($post) {

//});
